home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / examples / doc / plot06 < prev    next >
Text File  |  1997-07-08  |  617b  |  26 lines

  1. ; Compile the file plot05.pro, which contains two IDL procedures
  2. ; named "BOX" and "BARGRAPH". 
  3.  
  4. .r plot05.pro
  5.  
  6. ; Define variables.
  7.  
  8. @plot01
  9.  
  10. ; Load a colorful color table.
  11.  
  12. LOADCT, 39
  13.  
  14. ; As in the previous example, the PLOT procedure is used to draw
  15. ; the axes and to establish the scaling using the NODATA keyword.
  16.  
  17. PLOT, year, CHINOOK, YRANGE = [MIN(allpts),MAX(allpts)], $
  18.     TITLE = 'Salmon Populations', /NODATA, XRANGE = [year(0), 1990]    
  19.  
  20. ; Retrieve the y value of the bottom X-axis and store it in
  21. ; the variable minval. Pass this variable to the BARGRAPH procedure.
  22.  
  23. minval = !Y.CRANGE(0)
  24.  
  25. BARGRAPH, minval
  26.